package club.pchome.common.util.jwt;

import java.util.Date;

/**
 * Created by lenli on 16-8-11.
 */
public class JwtToken {

    private Long userId;

    private String cellPhone;


    private long expire;

    /**
     * 设备ID
     */
    private String deviceId="pc";

    private String method;//接口名。例如: user.login

    private String appKey="yg_product_pc";	//服务端分配。

    private String appVersion="1.0.0";	//app版本号

    private String version="1.0.0";	//API版本号，目前版本号是1.0.0

    private String timestamp=DateUtil.DateToString(new Date(),"yyyy-MM-dd hh:mm:ss");//时间戳格式: 2015-09-21 17:06:01

    private String systemType="4541638535435";//系统类型

    private String systemSource="pc";//系统来源

    private String token;//票据

    private String sign;	//数字签名

    private String appSecret="39822ed3feefa71c05373f24fa566826";

    public String getTokenId(){
        return cellPhone;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCellPhone() {
        return cellPhone;
    }

    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    public String getSystemSource() {
        return systemSource;
    }

    public void setSystemSource(String systemSource) {
        this.systemSource = systemSource;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}
